package com.atguigu.java;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

/**
 *
 *
 */
public class FileUtilTest {
    public static void main(String[] args) {
        File srcFile = new File("day10\\下午 趴在桌子的女孩4k动漫壁纸3840x2160_彼岸图网.jpg");
        File destFile = new File("day10\\下午 趴在桌子的女孩4k动漫壁纸3840x2160_彼岸图网2.jpg");

        try {
            FileUtils.copyFile(srcFile,destFile);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
